package com.example.project_springboot.service;

import com.example.project_springboot.pojo.Emp;
import com.example.project_springboot.pojo.PageBean;

import java.time.LocalDate;

/**
 * 员工管理
 */
public interface EmpService {
    void deleteEmp(Long[] ids);

    PageBean selectEmp(Integer page, Integer pageSize, String name, Short gender, LocalDate begin, LocalDate end);
    /**
     * 根据ID查询员工
     * @param id
     * @return
     */
    Emp getById(Integer id);

    /**
     * 更新员工
     * @param emp
     */
    void update(Emp emp);

    Emp login(Emp emp);
}
